package com.yylending.las.webview;

import android.webkit.JavascriptInterface;
import com.yyfax.common.CLog;

import java.lang.ref.WeakReference;

/**
 * Created by HenryZhang on 2016/11/2.
 * Copyright © 2016 www.yyfax.com. All Rights Reserved.
 */
public class WebViewJSObject {
	private final static String TAG = "WebViewJSObject";

	private WeakReference<WebViewActivity> mAty;

	public WebViewJSObject(WebViewActivity aty) {
		mAty = new WeakReference<>(aty);
	}

	@JavascriptInterface
	public void encrypt(String data) {
		CLog.i(TAG, "encrypt: " + data);
	}

	@JavascriptInterface
	public void setPageTitle(String data) {
		CLog.i(TAG, "setPageTitle: " + data);
	}

	@JavascriptInterface
	public void requestData(String data) {
		CLog.i(TAG, "requestData: " + data);
	}
}
